<%@ page import="gdepot.User" %>

<div class="form-group">
    <label for="username" class="col-lg-2 control-label">用户名<span class="required-indicator">*</span></label>

    <div class="col-lg-10">
        <g:textField name="username" required=""  placeholder="请输入用户名" value="${userInstance?.username}" class="form-control"/>
    </div>
</div>

<div class="form-group">
    <label for="password" class="col-lg-2 control-label">密码<span class="required-indicator">*</span></label>
    <div class="col-lg-10">
        <g:passwordField name="password"  required=""  placeholder="请输入由数字和字母组成的6-16位密码"  value="${userInstance?.password}" class="form-control"/>
    </div>
</div>

<div class="form-group">
    <label for="password" class="col-lg-2 control-label">密码<span class="required-indicator">*</span></label>

    <div class="col-lg-10">
        <g:passwordField name="passwordAgain"  required=""  placeholder="请再次输入密码"  class="form-control" value="${cmd?.passwordAgain}"/>
    </div>
</div>

<div class="form-group">
    <label for="fullName" class="col-lg-2 control-label">姓名<span class="required-indicator">*</span></label>

    <div class="col-lg-10">
        <g:textField name="fullName" required=""  placeholder="请输入您的姓名" value="${userInstance?.fullName}" class="form-control"/>
    </div>
</div>

<div class="form-group">
    <label for="gender" class="col-lg-2 control-label">性别<span class="required-indicator">*</span></label>

    <div class="col-lg-10">
        <g:select  from="['男','女']" name="gender" required="" value="${userInstance?.gender}" class="form-control"/>
    </div>
</div>

<div class="form-group">
    <label for="email" class="col-lg-2 control-label">邮箱<span class="required-indicator">*</span></label>

    <div class="col-lg-10">
        <g:textField name="email" required=""  placeholder="请输入邮箱"   value="${userInstance?.email}" class="form-control"/>
    </div>
</div>

<div class="form-group">
    <label for="phone" class="col-lg-2 control-label">电话<span class="required-indicator">*</span></label>

    <div class="col-lg-10">
        <g:textField name="phone" required="" maxlength="11" placeholder="请输入手机号"   value="${userInstance?.phone}" class="form-control"/>
    </div>
</div>


<div class="form-group">
    <label for="address" class="col-lg-2 control-label">地址<span class="required-indicator">*</span></label>

    <div class="col-lg-10">
        <g:textField name="address" required=""  placeholder="请输入地址(选填)"  maxlength="200" value="${userInstance?.address}" class="form-control"/>
    </div>
</div>

